python中的enumerate函數 enumerate 函數用於遍歷序列中的元素以及它們的下標: >>> for i,j in enumerate(('a','b','c')): print i,j 0 a1 b ...